package com.shop.cloud.model.response;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.shop.cloud.model.request.RestfulRequest;
import com.shop.cloud.model.response.RestfulResponse;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author Alex
 */

@ToString(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class GetSysUserListResponse extends RestfulRequest{
	
    @JsonProperty("id")
    @ApiModelProperty(value = "id", example = "", required = true)
    private Long id;

    @JsonProperty("username")
    @ApiModelProperty(value = "登录帐号", example = "", required = true)
    private String username;
    
    @JsonProperty("fullname")
    @ApiModelProperty(value = "用户名称", example = "", required = true)
    private String fullname;
    
    @JsonProperty("role")
    @ApiModelProperty(value = "角色类型", example = "", required = true)
    private String role;

    @JsonProperty("position")
    @ApiModelProperty(value = "角色职位", example = "", required = true)
    private String position;
    
    @JsonProperty("create_time")
    private Timestamp create_time;
    
    @JsonProperty("last_login_time")
    private Timestamp last_login_time;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Timestamp getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Timestamp create_time) {
		this.create_time = create_time;
	}

	public Timestamp getLast_login_time() {
		return last_login_time;
	}

	public void setLast_login_time(Timestamp last_login_time) {
		this.last_login_time = last_login_time;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

}
